package negocio

import grails.converters.JSON


class FacebookController extends BaseSecureController{

    def facebookGraphService
    def usuarioService

    def index = { 
        redirect(action:face)
    }

    def face={

    }
    def publicarEvento={
       def msg=params.message
        if(facebookGraphService && session.facebook){
          facebookGraphService.publishWall(msg)
        }
        redirect(controller:'evento', action:'list')

    }
    def publicarAtividade={
       def msg=params.message
        if(facebookGraphService && session.facebook){
          facebookGraphService.publishWall(msg)
        }
        redirect(controller:'atividade', action:'list')

    }
}
